var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = e("GlobalParams"),
    i = e("AudioManager"),
    r = e("UIManager"),
    s = cc._decorator,
    l = s.ccclass,
    c = s.property,
    d = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (t.hand_node = null), (t.hand_anime = null), (t.uiManager = null), t;
        }
        return (
            __extends(t, e),
            (t.prototype.initView = function () {
                var e = this;
                (this.uiManager = cc.find("UIManager").getComponent(r.default)),
                    i.default.getInstance().playFx("guide_0"),
                    (this.hand_anime = cc
                        .tween(this.hand_node)
                        .by(0.8, {position: cc.v3(100, 0)})
                        .call(function () {
                            (e.hand_node.x = 90), e.hand_anime.start();
                        })),
                    this.hand_anime.start();
            }),
            (t.prototype.OnClick = function (t) {
                switch ((e.prototype.OnClick.call(this, t), t.node.name)) {
                    case "begin_btn":
                        (a.GlobalParams.ChangeGameMode = 0),
                            this.uiManager.showPopup("MatchViewUI"),
                            this.node.parent.destroy();
                }
            }),
            __decorate([c(cc.Node)], t.prototype, "hand_node", void 0),
            __decorate([l], t)
        );
    })(n.default);
o.default = d;
